package com.baize.glinkad.manager;

import android.app.Activity;
import android.app.Application;

import com.baize.glinkad.bean.listener.ADListener;
import com.baize.glinkad.utils.ADTool;

public class GLinkADManager {

    public static void init(Activity activity, ADListener aDListener) {
        ADManagerFactory.instance().glinkAD.init(activity,aDListener);
    }

    public static void initApplication(Application application) {
        ADTool.getCurrChannel(application);
        ADManagerFactory.instance().initApplication(application);
    }

    public static void onDestory(Activity activity) {
        ADManagerFactory.instance().glinkAD.onDestroy(activity);
    }

    public static void onPause(Activity activity) {
        ADManagerFactory.instance().glinkAD.onPause(activity);
    }

    public static void onResume(Activity activity) {
        ADManagerFactory.instance().glinkAD.onResume(activity);
    }

}
